package com.logger;

import java.util.HashMap;
import java.util.Map;

/**
 * 日志配置
 * <p>
 * Created by chenxunlin01 on 2016/1/13.
 */

public class LoggerConfig {

    private Option root;
    private Map<String, Option> options;

    public LoggerConfig() {
        root = new Option();
        options = new HashMap<>();
    }

    public void addOption(Option option) {
        options.put(option.getName(), option);
    }

    public Option getOption(String name) {
        return options.get(name);
    }

    public Map<String, Option> getOptions() {
        return options;
    }

    public Option getRoot() {
        return root;
    }

    public void setRoot(Option root) {
        this.root = root;
    }
}
